package com.dragon.refect.classload;

/**
 * 类加载器演示案例
 *
 * @author dragon
 * @since 2019/11/20
 */
public class MyTest7 {

    public static void main(String[] args) {
        ClassLoader classLoader = ClassLoader.getSystemClassLoader();
        System.out.println(classLoader);

        while (classLoader != null) {
            classLoader = classLoader.getParent();
            System.out.println(classLoader);
        }
    }
}
